package com.scan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scan.dao.mapper.VoteSubjectMapper;
import com.scan.dao.model.VoteSubject;
import com.scan.service.VoteSubjectService;

/**
 * Created by tancw on 2017/2/8.
 */
@Service
public class VoteSubjectServiceImpl implements VoteSubjectService {

    @Autowired
    private VoteSubjectMapper subjectMapper;

    @Override
    public VoteSubject getSubjectById(Integer id) {
        return subjectMapper.selectByPrimaryKey(id);
    }
}
